<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    <div class="aside">
    	{template 'left.html','order'}
    </div>
    <div class="main"> 
    
    	<p id="position"><strong>当前位置：</strong><a href="">首页</a><a href="{$MODULE[member][url]}">会员中心</a><a href="{$M[url]}">订单</a>确认付款</p>
        <div class="clear"></div> 
        
        <div class="head">订单信息</div>
        <table cellpadding="0" cellspacing="1" class="table_list"> 
            <tr>
               <th>产品</th>
               <th width="12%">单价</th>
               <th width="8%">数量</th>
               <th width="10%">运费</th>
               <th width="10%">总价</th>
            </tr>
            <tr>
                <td class="align_l"><a href="{$goodsurl}">{$goodsname}</a></td>
                <td>{$price}元/{$unit}</td>
                <td>{$number}{$unit}</td>
                <td>{$carriage}元</td>
                <td>{$amount}元</td>
            </tr>
        </table>
        
        
         <div class="head">确认付款</div>
        <form name="myform" action="{url("?module=$module&action=pay&orderid=$orderid")}" method="post" onSubmit="return checkform({$money})">
        <table cellpadding="0" cellspacing="1" class="table"> 
            <tr>
               <th width="15%">付款金额：</th>
               <td style="color:red;font-size:14px;font-weight:bold;">{$amount} 元</td>            
            </tr>
            <tr>
              <th>帐户余额：</th>
              <td style="color:blue">{$_amount} 元 {if $_amount < $amount}&nbsp;&nbsp;&nbsp;&nbsp;账户余额不够，请<a href="?module=pay&file=showpayment&action=type&pay=online&amount={$money}&forward={urlencode(URL)}" style="color:red">立即充值</a>。{/if}
              
              
              <a href="{url("?module=pay&file=showpayment&action=type&pay=online&amount=$money&forward=urlencode(URL)")}" style="color:red">立即充值</a>
              
              </td>
            </tr>
            <tr>
              <th></th>
              <td><input type="submit" name="dosubmit" value="确认付款"></td>
            </tr>
        </table>
        </form>
     </div>
</div>   
    
    
    
    
<script language="JavaScript">
function checkform(money)
{
    if(money > 0)
	{
	    alert('余额不足，请先充值！');
		return false;
	}
	return true;
}
</script>
{template 'footer.html'}
